package com.epoint.webapp.entity;

import java.util.Date;

import com.epoint.webapp.util.EncodeHtml;

public class Blog {
	private int id;
	private String title;
	private String content;
	private Date date;
	private int countMessage;
	private int countNewMessage;
	private String gist;
	private String dateString;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		EncodeHtml encodeHtml = new EncodeHtml();
		gist = encodeHtml.getGist(200, content);
		this.content = content;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public int getCountMessage() {
		return countMessage;
	}
	public void setCountMessage(int countMessage) {
		this.countMessage = countMessage;
	}
	public String getGist() {
		return gist;
	}
	public void setGist(String gist) {
		this.gist = gist;
	}
	public int getCountNewMessage() {
		return countNewMessage;
	}
	public void setCountNewMessage(int countNewMessage) {
		this.countNewMessage = countNewMessage;
	}
	public String getDateString() {
		return dateString;
	}
	public void setDateString(String dateString) {
		this.dateString = dateString;
	}	
	
}

